package com.apes.hr.transfer.repository;

import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.hr.base.model.Employee;
import com.apes.hr.transfer.model.WorkHandover;

import java.util.List;

/**
 * @author HuJianLin
 * @create 2018-04-28 16:07
 */
public interface WorkHandoverRepository extends CustomRepository<WorkHandover, String>{

    List<WorkHandover> findByIdAndState(String id, String state);

    List<WorkHandover> findByLeaveEmployeeAndState(Employee employee,String state);

}
